home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 155 / XENIATGM155.iso / Gioco Allegato / Mods / SWRv0.1.exe / SWRv0.1 / etg / r1B5LargeProjectilesBullet.ebg < prev    next >
Text File  |  2001-06-12  |  2KB  |  91 lines

  1. // CnlPepper's Weapon Pack - V3.0 - http://www.geocities.com/cnlpepper
  2. // -------------------------------------------------------------------
  3. // R1 Unlimited Large Projectile Script - r1B5LargeProjectilesBullet.ebg - v1.0
  4. // 
  5. // Uses the BulletLength parameter passed from the weapon entry in the .shp files to determine which weapon image to display.
  6. //
  7. // Currently implimented weapon images:
  8. // BulletLength 1.0 - EA Large Plasma Cannon (Green Pulse)
  9. // BulletLength 2.0 - EA Heavy Pulse Cannon (Off-White Pulse)
  10. // BulletLength 3.0 - EA Medium Pulse Cannon (Red Pulse)
  11. // BulletLength 4.0 - EA Small Pulse Cannon (Blue Pulse)
  12. // BulletLength 5.0 - EA Heavy Rail Gun [UNFINISHED]
  13. // BulletLength 6.0 - EA Medium Pulse Cannon (off-White Pulse)
  14.  
  15. eventStart(float damage = 10, float velocity = 20, float length = 1.0, float duration = 9999)
  16.  
  17. maxFrequency(30)
  18.  
  19. variable
  20.     {
  21.     int   flame
  22.     float flamesize
  23.     float value
  24.     }
  25.  
  26. startup
  27.     {
  28.     setDefaults()
  29.     spawn(r1B5LargeProjectilesFire.ebg, length)
  30.  
  31.     setDefaults()
  32.     if (length == 1.0)
  33.         {
  34.         setScale(56)
  35.         setLength(3)        
  36.         setOffsetLOF(-150)
  37.         setMesh(etg\meshes\misc\bullet.geo)
  38.         setTexture(textures\bullets\PlasmaGreen, 0, 0, 32, 64)
  39.         }
  40.  
  41.     if (length == 2.0)
  42.         {
  43.         setScale(50)
  44.         setLength(3)
  45.         setOffsetLOF(-150)
  46.         setMesh(etg\meshes\misc\bullet.geo)
  47.         setTexture(textures\bullets\PlasmaWhite, 0, 0, 32, 64)
  48.         }
  49.  
  50.     if (length == 3.0)
  51.         {
  52.         setScale(42)
  53.         setLength(2)
  54.         setMesh(etg\meshes\misc\bullet.geo)
  55.         setTexture(textures\bullets\IonRed, 0, 0, 32, 64)
  56.         setAddColor(1.0,0.4, 0.0)
  57.         }
  58.  
  59.     if (length == 4.0)
  60.         {
  61.         setScale(32)
  62.         setLength(1.6)
  63.         setMesh(etg\meshes\misc\bullet.geo)
  64.         setTexture(textures\bullets\PulseBlue, 0, 0, 32, 64)
  65.         }
  66.  
  67.     if (length == 5.0)
  68.         {
  69.         }
  70.  
  71.     if (length == 6.0)
  72.         {
  73.         setScale(42)
  74.         setLength(3)
  75.         setOffsetLOF(-150)
  76.         setMesh(etg\meshes\misc\bullet.geo)
  77.         setTexture(textures\bullets\PlasmaWhite, 0, 0, 32, 64)
  78.         }
  79.  
  80.  
  81.     setDeltaR(5, [(360) * 2.0 * 3.14159265359789 / 360.0])
  82.     setDepthWrite(0)
  83.     setPseudoBillboard(1)
  84.     setVelocityInWorldSpace(1)
  85.     setLighting(0)
  86.     setIllum(1)
  87.     setLifespan(1000)
  88.  
  89.     flame <- createMeshes(1,0)
  90.     }
  91.